package com.betterwood.dragon.dao;

import java.util.List;

import com.betterwood.dragon.entity.Search;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * @author dominic
 * @create 2021-03-17 14:16
 */
@Repository
public interface SearchDao extends PagingAndSortingRepository<Search, String> {

    List<Search> findAll();

    void deleteBySearchId(String searchId);

    Search getOneById(String id);

    Search getOneBySearchId(String searchId);

}
